﻿<%@ Page Title="Quản lý sinh viên" Language="C#" MasterPageFile="~/NhanVien/NhanVien.master" AutoEventWireup="true" CodeFile="QuanLySinhVien.aspx.cs" Inherits="NhanVien_QuanLySinhVien" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="wrap">
        <h2>
            Quản lý thông tin sinh viên
            <asp:HyperLink ID="HyperLink2" runat="server" CssClass="node"
            NavigateUrl="QuanLyLopTC.aspx" BackColor="#F1F1F2" >Quản lý lớp tín chỉ</asp:HyperLink>
        </h2>
    </div>
    
    <div style="clear: both;">&nbsp;</div>
        
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:DropDownList ID="ddlMonHoc" runat="server" AutoPostBack="true"
            onselectedindexchanged="ddlMonHoc_SelectedIndexChanged">
            </asp:DropDownList>
            <br />
            <asp:DropDownList ID="ddlLopTC" runat="server" AutoPostBack="true" 
                onselectedindexchanged="ddlLopTC_SelectedIndexChanged">
            </asp:DropDownList>
        </ContentTemplate>
    </asp:UpdatePanel>
        <br />
        
        <div style="clear: both;">&nbsp;</div>
        <hr />

        <div align="center" style="width:98%; border: solid 1px #CCCCCC;padding-top:0px; height:300px;  overflow:auto;" >
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
             
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataKeyNames="MsSinhVien,MsLopTC" Width="100%"
                ForeColor="#333333" GridLines="None" 
                onrowcommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound" 
                AllowPaging="True" onpageindexchanging="GridView1_PageIndexChanging" >
                <Columns>
                    <asp:TemplateField HeaderText="" >
                        <ItemTemplate>
                            <input name="MyRadioButton" type="radio"  style="width:35px;"
                                    value='<%# Eval("MsSinhVien") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="MsSinhVien" HeaderText="Mã số sinh viên" ReadOnly="True" 
                        SortExpression="MsSinhVien" />
                    <asp:TemplateField HeaderText="Tên sinh viên">
                        <ItemTemplate>
                            <%#Eval("tbl_SINHVIEN.TenSinhVien")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="MsLopTC" HeaderText="Mã lớp tín chỉ" ReadOnly="True" 
                        SortExpression="MsLopTC" />
                    <asp:TemplateField HeaderText="Tên môn học">
                    <ItemTemplate>
                        <%#Eval("tbl_LOPTC.tbl_MONHOC.TenMonHoc")%>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="NgayDangKy" HeaderText="Ngày đăng ký" 
                        SortExpression="NgayDangKy" />
                </Columns>
                <RowStyle BackColor="#EFF3FB" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#2461BF" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                ContextTypeName="DataClassesDataContext" TableName="tbl_DANGKYLOPTCs">
            </asp:LinqDataSource>
            
            <%--<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                DataKeyNames="MsSinhVien,MsLopTC"  >
                <Columns>
                    <asp:BoundField DataField="MsSinhVien" HeaderText="MsSinhVien" ReadOnly="True" 
                        SortExpression="MsSinhVien" />
                    <asp:TemplateField HeaderText="Tên sinh viên">
                    <ItemTemplate>
                        <%#Eval("tbl_SINHVIEN.TenSinhVien")%>
                    </ItemTemplate>
                    </asp:TemplateField>
                        <asp:BoundField DataField="MsLopTC" HeaderText="MsLopTC" 
                            SortExpression="MsLopTC" ReadOnly="True" />
                    <asp:TemplateField HeaderText="Tên môn học">
                    <ItemTemplate>
                        <%#Eval("tbl_LOPTC.tbl_MONHOC.TenMonHoc")%>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="NgayDangKy" HeaderText="NgayDangKy" 
                        SortExpression="NgayDangKy" />
                </Columns>
            </asp:GridView>--%>
        </ContentTemplate>
        </asp:UpdatePanel>

    </div>

</asp:Content>

